import request from '@/utils/request'
// 渲染页面列表
export function GetsubjectList(params) {
  return request({
    url: '/subject/subject',
    method: 'GET',
    params
  })
}
// 添加
export function AddsubjectList(data) {
  return request({
    url: '/subject/subject',
    method: 'POST',
    data
  })
}
// 获取当前数据的详细信息
export function GetsubjectId(id) {
  return request({
    url: '/subject/subject/' + id,
    method: 'GET'
  })
}
// 提交修改
export function PutsubjectId(data) {
  return request({
    url: '/subject/subject/' + data.id,
    method: 'PUT',
    data
  })
}
// 删除
export function DelsubjectId(id) {
  return request({
    url: '/subject/subject/' + id,
    method: 'DELETE'
  })
}
// 点击链接跳转对应列表 subject/directory
export function Nextsubject(params) {
  return request({
    url: 'subject/directory',
    method: 'GET',
    params
  })
}
